package com.zh.note.leetcode.dp;

/**
 * 数组打印工具
 */
public class ArraysUtils {

    private ArraysUtils() {

    }

    public static void printArray(int[] dp) {
        for (int i = 0; i < dp.length; i++) {
            System.out.printf("dp[%d]=%d\n", i, dp[i]);
        }
    }

    public static void printArray(int[][] dp) {
        for (int i = 0; i < dp.length; i++) {
            for (int j = 0; j < dp[0].length; j++) {
                System.out.printf("dp[%d][%d]=%d\n", i, j, dp[i][j]);
            }
        }
    }
}
